package com.campus.entity.Clazz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.entity.File.FileUpload;
import com.campus.entity.Student;
import com.campus.entity.Teacher;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 班级表
 *
 * @TableName t_clazz
 */
@TableName(value = "t_clazz")
@Data
public class Clazz implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属学校
     */
    @TableField(value = "school")
    private String school;
    /**
     * 所属学院
     */
    @TableField(value = "college")
    private String college;

    /**
     * 专业
     */
    @TableField(value = "major")
    private String major;
    /**
     * 班级
     */
    @TableField(value = "classes")
    private String classes;
    /**
     * 班级代号
     */
    @TableField(value = "class_num")
    private Integer classNum;
    /**
     * 创建人的用户id
     */
    @TableField(value = "create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    @TableField(value = "del_flag")
    private Integer delFlag;
    @TableField(exist = false)
    private List<Student> studentList;
    @TableField(exist = false)
    private List<Teacher> teacherList;
    @TableField(exist = false)
    private List<FileUpload> fileUploadList;
}